﻿package core.image.psd
{
    import flash.utils.*;

    public class AdjustmentInfo extends Object
    {
        public var Key:String = "";
        public var Data:ByteArray;

        public function AdjustmentInfo()
        {
            this.Data = new ByteArray();
            return;
        }// end function

        public static function Load(core.image.psd:AdjustmentInfo:ByteArrayReader) : AdjustmentInfo
        {
            var _loc_2:* = new AdjustmentInfo;
            var _loc_3:* = core.image.psd:AdjustmentInfo.ReadChars(4);
            if (_loc_3 != "8BIM")
            {
                throw new Error("Could not read an image resource");
            }
            _loc_2.Key = core.image.psd:AdjustmentInfo.ReadChars(4);
            var _loc_4:* = core.image.psd:AdjustmentInfo.ReadUInt32();
            _loc_2.Data = core.image.psd:AdjustmentInfo.Read(int(_loc_4));
            return _loc_2;
        }// end function

    }
}
